# -*- coding:utf-8 -*-

"""

author      :   huangchao
fileName    :   dateConvert.py

"""


class DateConvert(object):

    January = '一月'
    February = '二月'
    March = '三月'
    April = '四月'
    May = '五月'
    June = '六月'
    July = '七月'
    August = '八月'
    September = '九月'
    October = '十月'
    November = '十一月'
    December = '十二月'

    @classmethod
    def dateConvert(cls, num):
        num = str(num)
        if num == '1':
            return cls.January
        elif num == '2':
            return cls.February
        elif num == '3':
            return cls.March
        elif num == '4':
            return cls.April
        elif num == '5':
            return cls.May
        elif num == '6':
            return cls.June
        elif num == '7':
            return cls.July
        elif num == '8':
            return cls.August
        elif num == '9':
            return cls.September
        elif num == '10':
            return cls.October
        elif num == '11':
            return cls.November
        elif num == '12':
            return cls.December
        else:
            raise Exception("There is no such month, please enter the correct value")


dateConvert = DateConvert()

if __name__ == '__main__':
    print(DateConvert.dateConvert(12))
